package maquina;

import java.util.ArrayList;

public class PilaTrabajo<T> {
	private Pila<T> pila;
	private ArrayList<T> mem;
	
	public PilaTrabajo(){
		pila = new Pila<T>();
		mem = new ArrayList<T>();
	}
	public PilaTrabajo(Pila<T> p, ArrayList<T> mem){
		pila = p;
		this.mem = mem;
	}
	public Pila<T> getPila(){return pila;}
	public ArrayList<T> getMem(){return mem;}
	public void setPila(Pila<T> pila){this.pila = pila;}
	public void setMem(ArrayList<T> mem){this.mem = mem;}
	public void setMem(T dato,int dir){mem.set(dir, dato);}
	
}
